USE SampleDataBase; GO -- Shrink the mdf file DBCC SHRINKFILE(N'SampleDataBase', 0); GO -- Shrink the log.ldf file DBCC SHRINKFILE(N'SampleDataBase_log', 0); GO